import http from './request'
//获取数据
export const assignmentrecordList = (data, current, size) => {
    return http({
        url: '/hongyun-training/assignmentrecord/list?current=' + current + '&size=' + size,
        method: 'POST',
        data
    })
}
// 新增或修改
export const assignmentrecordSubmit = (data) => {
    return http({
        url: '/hongyun-training/assignmentrecord/submit',
        method: 'POST',
        data: data
    })
}
// 逻辑删除
export const assignmentrecordRemove = (ids) => {
    return http({
        url: `/hongyun-training/assignmentrecord/remove?ids=${ids}`,
        method: 'POST'
    })
}
// 接班/仪表/交班详情详情
export const assignmentrecordDetail = (id) => {
    return http({
        url: `/hongyun-training/assignmentrecord/detail?id=${id}`,
        method: 'GET'
    })
}
// 接班修改
export const assignmentrecordtakeoverSubmit = (data) => {
    return http({
        url: `/hongyun-training/assignmentrecordtakeover/submit`,
        method: 'POST',
        data: data
    })
}
// 操作记录
export const assignmentrecordoperationList = (current, size, id) => {
    return http({
        url: `/hongyun-training/assignmentrecordoperation/list?current=${current}&size=${size}`,
        method: 'POST',
        data: { id, id }
    })
}
// 操作记录修改
export const assignmentrecordoperationSubmit = (data) => {
    return http({
        url: `/hongyun-training/assignmentrecordoperation/submit`,
        method: 'POST',
        data: data
    })
}
// 操作记录删除
export const assignmentrecordoperationRemove = (ids) => {
    return http({
        url: `/hongyun-training/assignmentrecordoperation/remove?ids=${ids}`,
        method: 'POST'
    })
}
// 获取生产设备
export const getSelectEquipmentName = () => {
    return http({
        url: `/hongyun-training/specialequipmentverificationrules/selectEquipmentName`,
        method: 'GET'
    })
}
// 获取消防设备
export const getSelectEquipmentNameProduction = () => {
    return http({
        url: `/hongyun-training/specialequipmentverificationrules/selectEquipmentNameProduction`,
        method: 'GET'
    })
}
// 获取操作设备列表
export const getDeviceInfos = (typeId) => {
    return http({
        url: `/hongyun-training/inspectionpoints/deviceInfosByTypeId?typeId=${typeId}`,
        method: 'GET'
    })
}

// 仪表编辑
export const assignmentrecordinstrumentSubmit = (data) => {
    return http({
        url: `/hongyun-training/assignmentrecordinstrument/submit`,
        method: 'POST',
        data: data
    })
}
// 仪表编辑
export const assignmentrecordhandoverSubmit = (data) => {
    return http({
        url: `/hongyun-training/assignmentrecordhandover/submit`,
        method: 'POST',
        data: data
    })
}